<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" media="screen" href="../../global/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" media="screen" href="../../global/layui/css/layui.css">
        <link rel="stylesheet" href="../../global/css/ztree/zTreeStyle/zTreeStyle.css" type="text/css">
        <link rel="stylesheet" href="../../global/css/ztree/demo.css" type="text/css">
</head>
<body>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
    <form class="form-horizontal" onsubmit="return false" id="form" enctype="multipart/form-data">
        <fieldset>
     <input type="hidden" id="shopsId" name="shopsId"/>
          <div class="form-group">
           <label class="col-md-2 control-label">商铺名称:</label>
           <div class="col-md-5">
            <input class="form-control" placeholder="商铺名称" type="text"style="width:600px"  name="shopsName" id="shopsName"  disabled="disabled" />
           </div>
          </div>
            <div class="form-group">
                <label class="col-md-2 control-label">logo:</label>
                <div class="col-md-10">
                    <img id="logo1" disabled="disabled"/>
                </div>
            </div>
             <div class="form-group">
                                  <label class="col-md-2 control-label">店铺类型:</label>
                                  <div class="col-md-10" style="width: 120px">
                    <input class="form-control" placeholder="店铺类型" style="width:600px"  type="text" name="shopsType" id="shopsType" disabled="disabled" />
                              </div>
                              </div>
            <div class="form-group">
                <label class="col-md-2 control-label">联系电话:</label>
                <div class="col-md-5">
                    <input class="form-control" placeholder="联系方式" style="width:600px" type="text" name="phone" id="phone"  disabled="disabled"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">商家地址:</label>
                <div class="col-md-5">
                     <input type="text" readonly placeholder="位置" style="width:600px" id="shopsAddress" name="shopsAddress" disabled="disabled"/>
                </div>
            </div>
           <div class="form-group">
                           <label class="col-md-2 control-label">营业时间:</label>
                           <div class="col-md-5">
                               <input class="form-control" placeholder="营业时间" style="width:600px" type="text" name="businessTime" id="businessTime"  disabled="disabled"/>
                           </div>
                       </div>
             <div class="form-group">
                            <label class="col-md-2 control-label">收款二维码:</label>
                            <div class="col-md-10">
                                <img id="code1" disabled="disabled"/>
                            </div>
                        </div>
             <div class="form-group">
                          <label class="col-md-2 control-label">店铺简介:</label>
                          <div class="col-md-5">
                          <textarea  name="property" id="property" disabled="disabled" rows="10" cols="30">
                          </textarea>
                          </div>
                          </div>

            <div class="form-actions">
                <div class="row" align="center">
                    <div class="col-md-12">
                        <button class="btn btn-primary" onclick="update()">编辑</button>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</div>
<script type="text/javascript" src="../../global/js/libs/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="../../global/js/jq.js"></script>
<script type="text/javascript" src="../../global/js/plugin/bootstrapvalidator/bootstrapValidator.min.js"></script>
<script type="text/javascript" src="../../global/js/common.js"></script>
<script type="text/javascript" src="../../global/layui/layui.js"></script>
<script type="text/javascript" src="../../global/js/my/permission.js"></script>
<script type="text/javascript"
	src="https://webapi.amap.com/maps?v=1.4.10&key=5f80e00b3a03bce6ac34804ff562a19f"></script>
<script type="text/javascript"
	src="https://webapi.amap.com/demos/js/liteToolbar.js"></script>
<script src="https://webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
<script type="text/javascript">
 var pers = checkPermission();

function  update(){
    var id=$("#shopsId").val();
     var href = "updateClyjNearbyShops.html?id=" + id;
     location.href=href;
     //var edit = buttonEdit(href, "shops:query", pers);
}

    layui.use(['layer', 'laydate'], function () {
        var layer = layui.layer;
        var laydate = layui.laydate;
        laydate.render({
            elem: '#aptitudeTime'
        });
    });
   $(function(){
		initData();
	})

    function initData() {
            $.ajax({
                type: 'get',
                url: "/clyjNearbyShops/clyshopsList",
                async: false,
                success: function (result) {
                    var data = result.data;
                    $("#shopsId").val(data.shopsId);
                    $("#shopsName").val(data.shopsName);
                    $("#logo1").attr("src",data.logo);
                    $("#shopsType").val(data.shopsType);
                    $("#phone").val(data.phone);
                    $("#shopsAddress").val(data.shopsAddress);
                    $("#businessTime").val(data.businessTime);
                    $("#code1").attr("src",data.code);
                    $("#property").val(data.property);

                    }
            });
	}

</script>
</body>
</html>